import Vue from "vue";
import VueRouter from "vue-router";


Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    redirect: 'mainPage',
  },
  {
    path: "/mainPage",
    name: "mainPage",
    component: () => import("../views/mainPage.vue")
  },
  {
    path: "/110breakPage",
    name: "110breakPage",
    component: () => import("../views/110breakPage.vue")
  },
  {
    path: "/zhubian",
    name: "zhubian",
    component: () => import("../views/zhubian.vue")
  },
  {
    path: "/ai",
    name: "ai",
    component: () => import("../views/ai.vue")
  },
];

const router = new VueRouter({
  mode: "history",
  base: process.env.BASE_URL,
  routes,
});

export default router;
